﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AdmLabOrder.aspx.cs" Inherits="LIMS.Web.AdmLabOrder" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1">
    <title></title>
    <link href="images/left.files/AdmLabOrder.css" rel="stylesheet" type="text/css" />
    <script src="jQuery/jquery-1.7.1.js" type="text/javascript"></script>
    <script src="jQuery/Common/jquery.ui.core.js" type="text/javascript"></script>
    <script src="jQuery/Common/jquery.ui.widget.js" type="text/javascript"></script>
    <script src="jQuery/Common/jquery.ui.datepicker.js" type="text/javascript"></script>
    <script src="jQuery/Common/jquery.ui.datepicker-fr-zh-CN.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(function () {
            $("#<%=txtDatePicker.ClientID %>").datepicker({
                changeMonth: true
            });
            $("#<%=txtDatePicker2.ClientID %>").datepicker({
                changeMonth: true
            });
            var ul = document.getElementById('tabs');
            var lis = ul.getElementsByTagName('li');
            var liIndex = 10;
            for (var i = 0; i < lis.length; i++) {
                lis[i].i = i;
                lis[i].onclick = function () {
                    liIndex = this.i;
                    document.getElementById("<%=myHiddenField.ClientID %>").innerText = this.i + 1;
                }
            };
            $("#<%=btnSingleContonation.ClientID %>").click(function () {
                var txtDate = $("#<%=txtDatePicker.ClientID %>").val();
                if (liIndex == 10 && txtDate.length == 0) {
                    alert("实验日期不能为空！");
                    return false;
                }
            });
        })
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div align="center">
        <table border="0" cellspacing="0" cellpadding="0" style="width: 810px;">
            <thead>
                <tr style="width: auto; font-weight: bold; color: #000000; font-size: 36px; height: 30;
                    text-align: center">
                    <td>
                        实验预约管理
                    </td>
                </tr>
            </thead>
            <tbody>
                <tr>
                    <td>
                        <ul id="tabs">
                            <li runat="server" id="tab1Demo"><a href="#" name="#tab1">按实验日期查询</a></li>
                            <li runat="server" id="tab2Demo"><a href="#" name="#tab2">按实验室查询</a></li>
                            <li runat="server" id="tab3Demo"><a href="#" name="#tab3">按教师查询</a></li>
                            <li runat="server" id="tab4Demo"><a href="#" name="#tab4">按上课时间段查询</a></li>
                            <li runat="server" id="tab5Demo"><a href="#" name="#tab5">组合条件查询</a></li>
                        </ul>
                        <div id="content">
                            <div id="tab1">
                                <h2>
                                    <span style="float: left; width: 250px; text-align: left;">实验日期
                                        <asp:TextBox ID="txtDatePicker" runat="server" Width="120"></asp:TextBox>
                                    </span>
                                </h2>
                            </div>
                            <div id="tab2">
                                <h2>
                                    <span style="float: left; width: 180px; height: 24px; text-align: left; margin-left: 110px;">
                                        实验室
                                        <select id="selLabs" runat="server">
                                            <option>实验室</option>
                                        </select>
                                    </span>
                                </h2>
                            </div>
                            <div id="tab3">
                                <h2>
                                    <span style="float: left; width: 244px; height: 24px; text-align: left; margin-left: 300px;">
                                        教师姓名
                                        <select id="selTeacher" runat="server">
                                            <option value="1" selected="selected">请选择教师</option>
                                        </select>
                                    </span>
                                </h2>
                            </div>
                            <div id="tab4">
                                <h2>
                                    <span style="float: left; width: 244px; height: 24px; text-align: left; margin-left: 400px;">
                                        上课时间段
                                        <select id="selLabStatus" runat="server">
                                            <option value="1" selected="selected">上午一二节</option>
                                            <option value="2">上午三四节</option>
                                            <option value="3">下午一二节</option>
                                            <option value="4">下午三四节</option>
                                            <option value="5">晚上一二节</option>
                                        </select>
                                    </span>
                                </h2>
                            </div>
                            <div id="tab5">
                                <div style="float: left; width: 200px; font-size: 18px; height: 24px; text-align: left;">
                                    实验日期
                                    <asp:TextBox ID="txtDatePicker2" runat="server" Width="100"></asp:TextBox>
                                </div>
                                <div style="float: left; width: 200px; height: 24px; font-size: 18px; text-align: left;
                                    margin-left: 10px;">
                                    上课时间段
                                    <select id="selLabStatus2" runat="server">
                                        <option value="1" selected="selected">上午一二节</option>
                                        <option value="2">上午三四节</option>
                                        <option value="3">下午一二节</option>
                                        <option value="4">下午三四节</option>
                                        <option value="5">晚上一二节</option>
                                    </select>
                                </div>
                                <div style="float: left; width: 200px; height: 24px; font-size: 18px; text-align: left;">
                                    教师姓名
                                    <select id="selTeacher2" runat="server">
                                        <option value="1" selected="selected">请选择教师</option>
                                    </select>
                                </div>
                                <div style="float: left; height: 24px; text-align: left; margin-right: 5px; font-size: 18px;">
                                    实验室
                                    <select id="selLabs2" runat="server">
                                        <option>实验室</option>
                                    </select>
                                </div>
                            </div>
                        </div>
                    </td>
                </tr>
                <script src="jQuery/MultipleTags.js" type="text/javascript"></script>
                <tr style="font-size: 12pt; color: #000000;">
                    <td style="width: 800px; text-align: left; font-size: 15pt; color: #000000; text-align: left;">
                        <br />
                        <div id="divHidden" runat="server" style="width: 10px; height: 10px; visibility: hidden;">
                        </div>
                        <br />
                        <asp:HiddenField ID="myHiddenField" runat="server" />
                        <br />
                    </td>
                </tr>
                <tr>
                    <td style="width: 800px; text-align: center; height: 30px; text-align: center">
                        <br />
                        <br />
                        <asp:Button ID="btnSingleContonation" runat="server" Text="单条件查询" OnClick="btnSingleContonation_Click"
                            BorderColor="Aquamarine" Font-Size="15" />
                        &nbsp;&nbsp;&nbsp;
                        <asp:Button ID="btnFullTextSearch" runat="server" Text="组合搜索" OnClick="btnFullTextSearch_Click"
                            BorderColor="Aquamarine" Font-Size="15" />
                        &nbsp;&nbsp;&nbsp;
                        <asp:Button ID="btnFlush" runat="server" Text="刷 新" OnClick="btnFlushAdmin_Click"
                            BorderColor="Aquamarine" Font-Size="15" />
                    </td>
                </tr>
                <tr>
                    <td colspan="2" align="center" style="height: 27px">
                        <br />
                        <asp:Repeater ID="rpOrderLabManager" runat="server" OnItemDataBound="rpOrderLabManager_OnItemDataBound">
                            <HeaderTemplate>
                                <table border="1" width="100%">
                                    <tr align="center">
                                        <th width="5%">
                                            序号
                                        </th>
                                        <th width="10%">
                                            实验日期
                                        </th>
                                        <th width="12%">
                                            上课时间段
                                        </th>
                                        <th width="10%">
                                            教师姓名
                                        </th>
                                        <th width="10%">
                                            实验室
                                        </th>
                                        <th width="38%">
                                            详细内容
                                        </th>
                                        <th width="15%">
                                            预约操作时间
                                        </th>
                                    </tr>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <tr align="center">
                                    <td>
                                        <%#Container.ItemIndex+1 %>
                                    </td>
                                    <td>
                                        <%#Eval("orderTestDate","{0:yyyy-MM-dd}")%>
                                    </td>
                                    <td>
                                        <%#ConventEnumToString(Eval("orderClassTimeSpan").ToString())%>
                                    </td>
                                    <td>
                                        <%# ConventTeaIdToName(Eval("teacherID").ToString())%>
                                    </td>
                                    <td>
                                        <%#Eval("labID")%>
                                    </td>
                                    <td>
                                        <%#Eval("testDetail")%>
                                    </td>
                                    <td>
                                        <%#Eval("orderOperationTime")%>
                                    </td>
                                </tr>
                            </ItemTemplate>
                            <FooterTemplate>
                                </table>
                            </FooterTemplate>
                        </asp:Repeater>
                        <br />
                        <webdiyer:AspNetPager ID="AspNetPager1" runat="server" CustomInfoHTML="总记录数:%RecordCount%, 总页数:%PageCount%, 当前为第 %CurrentPageIndex% 页"
                            FirstPageText="<<" LastPageText=">>" LayoutType="Div" NextPageText=">" NumericButtonCount="6"
                            PageIndexBoxType="DropDownList" PageSize="2" PrevPageText="<" ShowNavigationToolTip="true"
                            PagingButtonSpacing="6px" ShowCustomInfoSection="Right" OnPageChanged="AspNetPager1_PageChanged"
                            Font-Size="12px" HorizontalAlign="Center" Width="100%" AlwaysShow="true" CustomInfoSectionWidth="40%">
                        </webdiyer:AspNetPager>
                        <br />
                        &nbsp;
                    </td>
                </tr>
            </tbody>
        </table>
    </div>
    </form>
</body>
</html>
